import xlwings as xw
app = xw.App(visible=False, add_book=False)
workbook = app.books.open('F:\\python\\第4章\\汽车备案信息.xlsx')
worksheet = workbook.sheets['汽车备案信息']
area1 = worksheet.range('C6:E15')
area2 = area1.offset(row_offset=2, column_offset=1)
area3 = area1.offset(row_offset=-1, column_offset=-2)
print(area1)
print(area2)
print(area3)
workbook.close()
app.quit()
